<#import "../template.ftl" as t/>
<@t.html ; part>
    <#if part="head">
        <link href="<@spring.url "/resources/plugins/datatables/dataTables.bootstrap.css"/>" rel="stylesheet">
        <link href="<@spring.url "/resources/plugins/datatables/responsive.dataTables.min.css"/>" rel="stylesheet">
        <link href="<@spring.url "/resources/plugins/bootstrap-select/bootstrap-select.min.css"/>" rel="stylesheet">
    </#if>
    <#if part="body">
    <div class="panel" id="dataBody">
        <#include "checkRelevance.ftl"/>
    </div>
    </#if>
    <#if part="modal">

    </#if>

    <#if part="foot_script">
    <script type="text/javascript">
        function search() {
            pageChange(1);
        }
        function pageChange(page) {
            var key = $("#input-search2").val();
            var searchTypes = $("#searchTypes").val();
            $.post('<@spring.url "/sale/companyInfo/checkRelevance" />',
                {searchText:key, searchTypes:searchTypes, page:page},
                function (data) {
                    $("#dataBody").html(data);
                    $("#searchTypes").selectpicker('refresh');
                });
        }
    </script>
    </#if>
</@t.html>